/*
 * Main.cpp
 *
 *  Created on: 4 dec. 2012
 *      Author: Admin
 */

#include "Hardware.hpp"
#include "Robot.hpp"

__extension__ typedef int __guard __attribute__((mode (__DI__)));

extern "C" int __cxa_guard_acquire(__guard *);
extern "C" void __cxa_guard_release (__guard *);
extern "C" void __cxa_guard_abort (__guard *);
extern "C" void   atexit( void ) { }

int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
void __cxa_guard_abort (__guard *) {};

int main(int argc, char **argv)
{
	Robot::getInstance().init();
	Hardware::getHardwareController();
	Robot::getInstance().restart();
}
